<template>
    <div class="container box">
        <!-- 查询表单 -->
        <div class="search_form" ref="searchCard">
            <el-form :inline="true" size="mini" :model="searchForm">
                <el-form-item>
                    <el-input v-model="searchForm.createName" clearable style="background-color: #FFFFFF" placeholder="发布人" @input="searchForm.createName=verifyfilter('spaceChar',searchForm.createName)"></el-input>
                </el-form-item>
                <el-form-item>
                    <el-select size="mini" filterable clearable placeholder="状态" v-model="searchForm.releaseState" class="others">
                        <el-option :key="1" label="已发布" :value="1" />
                        <el-option :key="0" label="未发布" :value="0" />
                    </el-select>
                </el-form-item>
                <el-form-item>
                    <el-select size="mini" filterable clearable placeholder="版本类型" v-model="searchForm.versionType" class="others">
                        <el-option v-for='(item,index) in versionTypeList' :key="index" :label="item.versionName" :value="item.versionType" />
                    </el-select>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" icon="el-icon-search" @click="searchClick">查询</el-button>
                </el-form-item>
            </el-form>

            <!-- <div>
        <el-button @click="addTipMessage" size="mini">官网更新提示</el-button>
        <el-button @click="uploadMetadata" size="mini">上传</el-button>
      </div> -->
            <div>
                 <el-tooltip class="item" content="跑垛app版本上传" placement="top" v-if="menuArr.includes('版本上传')">
                    <el-button size="mini" class="marginC" @click="versionUpdate('05')"><i class="iconfont icon-13"></i></el-button>
                </el-tooltip>
                <el-tooltip class="item" content="pc端版本上传" placement="top" v-if="menuArr.includes('版本上传')">
                    <el-button size="mini" class="marginC" @click="versionUpdate('01')"><i class="iconfont icon-kehuduan"></i></el-button>
                </el-tooltip>
                <el-tooltip class="item" content="app版本上传" placement="top" v-if="menuArr.includes('版本上传')">
                    <el-button size="mini" class="marginC" @click="versionUpdate('02')"><i class="iconfont icon-APP"></i></el-button>
                </el-tooltip>
                <el-tooltip class="item" content="android理货app版本上传" placement="top" v-if="menuArr.includes('版本上传')">
                    <el-button size="mini" class="marginC" @click="versionUpdate('08')"><i class="iconfont icon-APP"></i></el-button>
                </el-tooltip>
                <el-tooltip class="item" content="ios理货app版本上传" placement="top" v-if="menuArr.includes('版本上传')">
                    <el-button size="mini" class="marginC" @click="versionUpdate('09')"><i class="iconfont icon-APP"></i></el-button>
                </el-tooltip>
                <el-tooltip class="item" content="车载app版本上传" placement="top" v-if="menuArr.includes('版本上传')">
                    <el-button size="mini" class="marginC" @click="versionUpdate('04')"><i class="iconfont icon-chezaiAPP"></i></el-button>
                </el-tooltip>
                <el-tooltip class="item" content="车载app2版本上传" placement="top" v-if="menuArr.includes('版本上传')">
                    <el-button size="mini" class="marginC" @click="versionUpdate('06')"><i class="iconfont icon-chezaiAPP"></i></el-button>
                </el-tooltip>
                <el-tooltip class="item" content="木材理货app版本上传" placement="top" v-if="menuArr.includes('版本上传')">
                    <el-button size="mini" class="marginC" @click="versionUpdate('07')"><i class="iconfont icon-chezaiAPP"></i></el-button>
                </el-tooltip>
                <!-- <el-tooltip class="item" content="web版本发布" placement="top" v-if="menuArr.includes('web版本发布')">
                    <el-button size="mini" class="marginC" @click="addTipMessage"><i class="iconfont icon-WEB"></i></el-button>
                </el-tooltip> -->
                <el-tooltip class="item" content="web版本列表" placement="top" v-if="menuArr.includes('web版本列表')">
                    <el-button size="mini" @click="showWebTip"><i class="iconfont icon-liebiao1"></i></el-button>
                </el-tooltip>
            </div>
        </div>

        <!-- 表格 -->
        <template>
            <BaseTable :data="cargotableData" :columns="cargotableDataColumns" :tableHeight="tableHeight" :pagination="false" :loading="loading"></BaseTable>
        </template>

        <div class="page">
            <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="queryInfo.page" :page-sizes="[10, 15, 30, 45]" :page-size="queryInfo.pagesize" layout="total, sizes, prev, pager, next, jumper" :total="queryInfo.totalNum"></el-pagination>
        </div>
        <el-drawer title="web端更新tips" :visible.sync="addTip" direction="rtl" size="30%" :before-close="handleClose"  >
            <el-form ref="addTipForm" :model="addTipForm" style="padding:20px" label-position="right" class="elFormWeb">
                <el-form-item label="版本号" label-width="100px">
                    <el-input size='mini' v-model="addTipForm.versionCode"></el-input>
                </el-form-item>
                <el-form-item label="版本名称" label-width="100px">
                    <el-input size='mini' v-model="addTipForm.versionName"></el-input>
                </el-form-item>
                <el-form-item label="备注" label-width="100px">
                    <el-input size='mini' v-model="addTipForm.remark"></el-input>
                </el-form-item>
                <el-form-item :rules="{ required: true, message: 'tip不能为空' }" :label="'tip'+(index+1)" label-width="100px" v-for="(item,index) in addTipForm.tipList" :key="index" :prop="'tipList.' + index + '.tip'">
                    <div class="updataForm">
                        <el-input type="textarea" size='mini' autosize v-model="item.tip"></el-input>
                        <div class="latClose">
                            <i class="iconfont icon-1-08 latCloseHover" @click="delForm(index)" style="font-size: 20px;color:#FA5151"></i>
                        </div>
                    </div>
                </el-form-item>
                <el-form-item>
                    <div class="ABtn">
                        <el-button type="primary" @click="addTipFun" size="mini">新增更新提示</el-button>
                    </div>
                </el-form-item>
            </el-form>
            <div class="demo-drawer__footer">
                <el-button size="small" type="primary" @click="addTipSave()">保 存</el-button>
            </div>
        </el-drawer>
        <importfolder :isShow="isimportfolder" :titleFolder='titleFolder' @visibleChange="visibleOrderChange" :versionType='versionType'></importfolder>
        <webTipList :isShow="isShowWebTip" @visibleChange="visibleWebTipChange"></webTipList>
    </div>
</template>

<script>
import BaseTable from '@/components/BaseTable'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import importfolder from './component/importfolder.vue'
import webTipList from './component/webTipList'
import { isObjectValueEqual } from '@/libs/date'

export default {
  components: {
    BaseTable,
    Treeselect,
    importfolder,
    webTipList
  },
  watch: {
    addTipForm: {
      handler(newVal, oldVal) {
        this.flagHint = isObjectValueEqual(newVal, oldVal)
      },
      deep: true
    }
  },
  data() {
    return {
      menuArr: [],
      flagHint: false,
      titleFolder: '', // 导入版本的标题
      versionType: '', // 版本type
      addTipForm: {
        versionCode: '', // 版本号
        versionName: '', // 版本名
        remark: '', // 备注
        tipList: [{
          tip: ''
        }
        ]
      }, // 新增更新信息的表单
      addTip: false,
      isShowWebTip: false, // 是否展示web更新列表
      cargotableDataColumns: [
        { prop: 'versionName', label: '版本名称' },
        { prop: 'versionCode', label: '版本号' },
        { prop: 'createName', label: '上传人' },
        { prop: 'createTime', label: '上传时间' },
        {
          prop: 'versionType',
          label: '发布类型',

          render(h, params) {
            if (params.row.versionType == '01') {
              return h('el-tag', {
                props: {
                  size: 'mini'
                },
                domProps: {
                  innerHTML: 'PC'
                }
              })
            } else if (params.row.versionType == '02') {
              return h('el-tag', {
                props: {
                  size: 'mini'
                },
                domProps: {
                  innerHTML: 'APP'
                }
              })
            } else if (params.row.versionType == '03') {
              return h('el-tag', {
                props: {
                  size: 'mini'
                },
                domProps: {
                  innerHTML: 'WEB'
                }
              })
            } else if (params.row.versionType == '04') {
              return h('el-tag', {
                props: {
                  size: 'mini'
                },
                domProps: {
                  innerHTML: '车载APP'
                }
              })
            } else if (params.row.versionType == '05') {
              return h('el-tag', {

                props: {
                  size: 'mini'
                },
                domProps: {
                  innerHTML: '跑垛app'
                }
              })
            } else if (params.row.versionType == '06') {
              return h('el-tag', {

                props: {
                  size: 'mini'
                },
                domProps: {
                  innerHTML: '车载APP2'
                }
              })
            } else if (params.row.versionType == '07') {
              return h('el-tag', {

                props: {
                  size: 'mini'
                },
                domProps: {
                  innerHTML: '木材理货APP'
                }
              })
            }
          }
        },
        {
          prop: 'releaseState',
          label: '发布状态',

          render(h, params) {
            if (params.row.releaseState == '1') {
              return h('el-tag', {
                props: {
                  size: 'mini',
                  type: 'success'
                },
                domProps: {
                  innerHTML: '已发布'
                }
              })
            }
            return h('el-tag', {
              props: {
                size: 'mini',
                type: 'warning'
              },
              domProps: {
                innerHTML: '未发布'
              }
            })
          }
        },
        {
          label: '操作',
          fixed: 'right',
          align: 'center',
          width: 350,
          render: (h, params) => {
            return h('div', [
              h('el-button', {
                props: {
                  size: 'mini',
                  disabled: params.row.versionType == '03'

                },
                style: {
                  opacity: params.row.versionType == '03' ? '0.5' : '1'
                },
                domProps: {
                  // 添加标签,使用自己引入的iconfont图标
                  innerHTML: `<span style='color:#0B6CD6;display: ${this.menuArr.includes('版本管理下载') ? 'block' : 'none'}'><i class='iconfont icon-1-07'></i><span  style='padding-left:5px;'>下载</span></span>`

                },
                on: {
                  click: () => {
                    this.download(params.row)
                  }
                }
              }),
              h('el-button', {
                props: {
                  size: 'mini',
                  disabled: params.row.releaseState == '1'

                },
                style: {
                  opacity: params.row.releaseState == '1' ? '0.5' : '1'
                },

                domProps: {
                  // 添加标签,使用自己引入的iconfont图标
                  innerHTML: `<span style='color:#0B6CD6;display: ${this.menuArr.includes('版本管理发布/撤回') ? 'block' : 'none'}'><i class='iconfont icon-1-07'></i><span  style='padding-left:5px;'>发布</span></span>`
                },
                on: {
                  click: () => {
                    this.handlePublishing(params.row)
                  }
                }
              }),
              h('el-button', {
                props: {
                  size: 'mini'
                },

                domProps: {
                  // 添加标签,使用自己引入的iconfont图标
                  innerHTML: `<span style='color:#F75E5E;display: ${this.menuArr.includes('版本管理发布/撤回') ? 'block' : 'none'}'><i class='iconfont icon-1-08'></i><span  style='padding-left:5px;'>撤回</span></span>`
                },
                on: {
                  click: () => {
                    this.handleDelete(params.row)
                  }
                }
              }),
              h('el-button', {
                props: {
                  size: 'mini'
                },

                domProps: {
                  // 添加标签,使用自己引入的iconfont图标
                  innerHTML: `<span style='color:#F75E5E;display: ${this.menuArr.includes('版本管理删除') ? 'block' : 'none'}'><i class='iconfont icon-1-08'></i><span  style='padding-left:5px;'>删除</span></span>`
                },
                on: {
                  click: () => {
                    this.handleDeleteDel(params.row)
                  }
                }
              })
            ])
          }
        }
      ],
      cargotableData: [],
      // tableHeight: window.innerHeight - 200,
      loading: false,
      // 查询表单
      searchForm: {
        createName: '',
        releaseState: '',
        versionType: ''
      },
      // 角色列表数据
      queryInfo: {
        // 当前页数
        page: 1,
        // 每页显示多少数据
        pagesize: 10,
        totalNum: 1
      },
      isimportfolder: false,
      versionTypeList: []
    }
  },

  methods: {
    // 获取版本类型
    getVersionTypeList() {
      this.$http.get(
        `/${this.$ServiceName}/api/external/versioncontrol/${this.$version}/queryversion`
      ).then(res => {
        if (res.data.success) {
          this.versionTypeList = res.data.data.filter(item => item.versionType != '03')
        }
      })
    },
    // 关闭抽屉操作
    handleClose(done) {
      if (this.flagHint) {
        this.$confirm('您已修改了数据，确定是否关闭？')
          .then(_ => {
            done()
            this.addTip = false
            this.addTipForm = {
              versionCode: '', // 版本号
              versionName: '', // 版本名
              remark: '', // 备注
              tipList: [{
                tip: ''
              }
              ]
            }
          })
          .catch(_ => { })
      } else {
        done()
        this.addTip = false
        this.addTipForm = {
          versionCode: '', // 版本号
          versionName: '', // 版本名
          remark: '', // 备注
          tipList: [{
            tip: ''
          }
          ]
        }
      }
    },
    // 版本上传
    versionUpdate(type) {
      this.isimportfolder = true;
      this.versionType = type
      this.titleFolder = type == '01' ? '客户端' : type == '02' ? 'APP' : type == '05' ? '跑垛app' : type == '04' ? '车载APP' : type == '07' ? '木材理货APP' : type == '08' ? 'android理货APP' : type == '09' ? 'ios理货APP' : '车载APP2'
      console.log(this.titleFolder);
    },
    // showWebTip展示web列表
    showWebTip() {
      this.isShowWebTip = true
    },
    // 保存新增提示
    addTipSave() {
      this.$refs['addTipForm'].validate((valid) => {
        if (valid) {
          let remark = ''// 要上传的更新
          if (this.addTipForm.tipList.length != 0) {
            this.addTipForm.tipList.map(item => {
              item.tip ? remark = remark + item.tip + '///' : ''
            })
          }
          console.log(remark);
          this.$http.post(`/${this.$ServiceName}/api/external/mtips/${this.$version}/insert`, {
            content: remark,
            versionCode: this.addTipForm.versionCode,
            versionName: this.addTipForm.versionName,
            remark: this.addTipForm.remark
          })
            .then(res => {
              if (res.data.success) {
                this.addTip = false
                this.getUserDataList()
                this.$message.success(res.data.msg)
              }
            }).catch(err => {

            })
        }
      })
    },
    // 删除提示字段
    delForm(index) {
      this.addTipForm.tipList.splice(index, 1)
    },
    // 新增更新提示字段
    addTipFun() {
      this.addTipForm.tipList.push(
        {
          tip: ''
        }
      )
    },
    // 新增更细
    addTipMessage() {
      this.addTip = true
    },
    // 发版
    async handleEdit(row) {
      const params = { id: row.id, releaseState: 1 }
      const res = await this.$http.put(
        `/${this.$ServiceName}/api/external/versioncontrol/${this.$version}/updatestate?id=` + row.id + '&releaseState=1'
      )
      if (res.data.code != '0000') {
        return this.$message.error(res.data.msg)
      }
      this.$message.success(res.data.msg)
      this.getUserDataList()
    },
    // 搜索
    async searchClick() {
      this.queryInfo.page = 1
      // 如果是web版本则打开web列表
      if (this.searchForm.versionType == '03') {
        this.isShowWebTip = true
      }
      this.getUserDataList()
    },
    // 获取用户table信息
    async getUserDataList() {
      this.loading = false
      const res = await this.$http.get(
        `/${this.$ServiceName}/api/external/versioncontrol/${this.$version}/queryall?startpage=${this.queryInfo.page}&pagesize=${this.queryInfo.pagesize}`, { params: this.searchForm }
      )
      if (res.data.code != '0000') {
        this.loading = false
      }
      this.cargotableData = res.data.data.pages
      this.queryInfo.totalNum = res.data.data.totalNum
      this.queryInfo.page = res.data.data.pageNum
      this.queryInfo.pagesize = res.data.data.pageSize
      this.loading = false
    },

    // 撤回版本
    async deleteUserInfo(row) {
      const res = await this.$http.put(
        `/${this.$ServiceName}/api/external/versioncontrol/${this.$version}/updatestate?id=` + row.id + '&releaseState=0'
      )
      if (res.data.code != '0000') {
        return this.$message.error(res.data.msg)
      }
      this.$message.success(res.data.msg)
      this.getUserDataList()
    },
    // 删除
    async deleteUserInfoDel(row) {
      if (row.releaseState == '1') {
        return this.$message.error('已发布的版本不能删除!')
      }
      const res = await this.$http.delete(
        `/${this.$ServiceName}/api/external/versioncontrol/${this.$version}/deletebyid?id=` + row.id
      )
      if (res.data.code != '0000') {
        return this.$message.error(res.data.msg)
      }
      this.$message.success(res.data.msg)
      this.getUserDataList()
    },
    // 每页显示的条数
    handleSizeChange(val) {
      this.queryInfo.pagesize = val
      this.getUserDataList()
    },
    // 当前页
    handleCurrentChange(val) {
      this.queryInfo.startpage = val
      this.getUserDataList()
    },
    // 撤回提示
    async handleDelete(row) {
      let text;
      if (row.releaseState == 0) {
        return this.$message.warning('版本未发布，无法撤回')
      }
      const confirmRes = await this.$confirm(
        '此操作将撤回已发版版本, 是否继续?',
        '提示',
        {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        }
      ).catch(err => {})
      if (confirmRes !== 'confirm') {
        return this.$message.info('已经取消撤回')
      }
      this.deleteUserInfo(row)
    },
    // 删除
    async handleDeleteDel(row) {
      const confirmRes = await this.$confirm(
        '此操作将删除已提交版本, 是否继续?',
        '提示',
        {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        }
      ).catch(err => {})
      if (confirmRes !== 'confirm') {
        return this.$message.info('已经取消删除')
      }
      this.deleteUserInfoDel(row)
    },
    // 发版提示
    async handlePublishing(row) {
      if (row.releaseState == 1) {
        return this.$message.warning('版本已发布')
      }
      const confirmRes = await this.$confirm(
        '此操作将发版版本, 是否继续?',
        '提示',
        {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        }
      ).catch(err => {})
      if (confirmRes !== 'confirm') {
        return this.$message.info('已经取消发版')
      }
      this.handleEdit(row)
    },
    // 下载
    async download(row) {
      let mime = '' // mime类型
      const linkAddress = row.linkAddress.split('.')
      const suffix = linkAddress[linkAddress.length - 1] // 获取文件类型
      suffix == 'exe' ? mime = 'application/octet-stream' : mime = 'application/vnd.android.package-archive' // 不同的mime类型
      const resdata = await this.$http.get(`/${this.$ServiceName}/api/external/versioncontrol/download?id=` + row.fileId, { timeout: 600000, responseType: 'blob' })
      const content = resdata.data
      // const blob = new Blob([content]) // 构造一个blob对象来处理数据
      const blob = new Blob([content], { type: mime });
      const link = document.createElement('a') // 创建a标签
      link.download = row.versionName // a标签添加属性
      link.style.display = 'none'
      link.href = URL.createObjectURL(blob)
      document.body.appendChild(link)
      link.click() // 执行下载
      URL.revokeObjectURL(link.href) // 释放url
      document.body.removeChild(link) // 释放标签
    },
    // //导入版本
    // uploadMetadata() {
    //     this.isimportfolder = true;
    // },
    visibleOrderChange(val) {
      this.isimportfolder = val;
      this.getUserDataList()
    },
    visibleWebTipChange(val) {
      this.isShowWebTip = val;
      this.getUserDataList()
    }
  },
  computed: {
    tableHeight() {
      return this.$store.state.tableHeight
    }
  },

  async activated() {
    var menuArr = []
    var menuId = ''
    if (localStorage.getItem('menuArr')) {
      menuArr = JSON.parse(localStorage.getItem('menuArr'))
    }
    menuArr.map(item => {
      item.children.map(v => {
        if (window.location.href.includes(v.url)) {
          menuId = v.id
        }
      })
    })

    if (menuId) {
      this.menuArr = []
      await this.$http.get(`/${this.$ServiceName}/api/external/sysmenubtn/listresourcebtnbyid?menuId=${menuId}`, { timeout: 30000 })
        .then(res => {
          res.data.data.map(item => {
            this.menuArr.push(item.resourceName)
          })
        }).catch((error) => {})
    }
    if (this.$store.state.app.searchResouce == 'menu') {
      this.searchForm = {
        createName: '',
        releaseState: '',
        versionType: ''
      }
      this.getUserDataList()
      this.getVersionTypeList()// 获取版本类型
    }
  }
}
</script>

<style lang="less" scoped>
.updataForm {
    position: relative;
    .latClose {
        top: -8px;
        right: -2px;
        position: absolute;
        cursor: pointer;
    }
    .latClose:hover {
        transform: scale(1.2);
        transition: all 0.1s linear;
    }
}
.ABtn {
    text-align: center;
}
/deep/.el-table {
    max-height: none !important;
}

/deep/.el-tabs__item:focus.is-active.is-focus:not(:active) {
    box-shadow: none !important;
}
/deep/.el-tabs__nav-wrap {
    padding: 0 20px;
    box-sizing: border-box;
}
/deep/.el-drawer__body > * {
    // height: 100%;
}
.down_box {
    height: 50px;
    width: 100%;
    background-color: #fff;
}
.userBtn {
    z-index: 100;
    text-align: right;
    padding-right: 20px;
    border-top: 1px solid #c8cfde;
    background-color: #f5f7fa;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 50px;
}
/deep/ .el-button--primary {
    background-color: #338ce8;
    border-color: #338ce8;
}
/deep/.el-tabs__content {
    position: initial !important;
}
.top {
    height: 80px;
}
.top2 {
    height: 30px;
}
/deep/ .el-collapse-item__header {
    background: #f5f7fa;
}
/deep/ #el-drawer__title {
    background: #f5f7fa;
}
#fiefooter /deep/ .el-select {
    width: 100%;
}
.yesgoods /deep/ .el-drawer__body {
    padding-top: 0;
}
.yesgoods .anniu {
    text-align: right;
    padding: 10px 20px 10px;
}

/deep/ .el-button + .el-button {
    margin-left: 0;
}
/deep/ .el-drawer__header {
    // margin-bottom: 12px;
    height: 40px;
    line-height: 41px;
    padding: 0 16px;
    box-sizing: border-box;
    border-bottom: 1px solid gainsboro;
    margin-bottom: 0;
}

/deep/ .el-drawer__open .el-drawer.rtl {
    background: #f5f7fa;
}

/deep/ .el-drawer__body {
    overflow-y: auto;
    padding-bottom: 50px;
}
/deep/.el-pagination.is-background .btn-next,
/deep/ .el-pagination.is-background .btn-prev,
/deep/ .el-pagination.is-background .el-pager li {
    background: #ffffff;
    border: 1px solid #e1e4eb;
    border-radius: 3px;
    border-radius: 3px;
}

/deep/ .el-collapse-item__header {
    padding-left: 19px;
    font-size: 16px;
}
/deep/ .el-breadcrumb {
    font-size: 16px;
}
/* 第一行居中 */
.el-table td:first-child,
el-table th:first-child,
.el-table td:last-child,
el-table th:last-child {
    text-align: center !important;
}

.container {
    .form_card {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    /deep/.el-card__body {
        width: 100%;
        padding: 0;
        border-radius: 0;
    }
    .page {
        background: #ffffff;
        text-align: right;
        border-radius: 0 0 4px 4px;
        padding: 5px 20px;
    }

    .editBtn,
    .deleteBtn {
        color: #1684f6;
        border-color: transparent;
        background: transparent;
    }
    //分页
    .card_pagination {
        text-align: right;
    }
    .el-scrollbar .el-scrollbar__wrap .el-scrollbar__view {
        white-space: nowrap;
    }
}
.el-table {
    margin-bottom: 0 !important;
}
.el-table td {
    padding: 10px 0;
    text-align: left;
}

.form_item {
    margin-top: 20px;
}
.delete-button {
    border: none;
    background-color: transparent;
}
/deep/ .el-po {
    margin-right: 10000px;
}
.btn /deep/ .el-button--mini,
.el-button--mini.is-round {
    padding: 7px 6px;
}
// 查询表单start
.search_form {
    background-color: #fff;
    color: #303133;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    .marginC {
        margin-right: 10px;
    }
    /deep/.el-input {
        width: 150px;
    }
}
.box {
    border: 1px solid #e1e4eb;
    border-radius: 4px 4px 0 0;
    border-top: none;
}
.elFormWeb {
    /deep/ .el-textarea__inner {
        height: 50px !important;
    }
}
</style>

